<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js location地址栏</title>
</head>
<body>
	<div class="mian">
		<h1>aaaaaaaaaaaaaaa</h1>
		
	</div>

	<script>
		

		alert(location.pathname); //获取url中的路径部分
	
		//放到正式环境下，显示的结果为 域名后面，文件的路径部分。运行结果为：/index.php/Home/Index/Index.html
	</script>
</body>
</html>